from django.conf.urls import url
from app import views

urlpatterns = [
    url(r'^login/', views.login, name='login'),  # 登录
    url(r'^register/', views.register, name='register'),  # 注册
    url(r'^logout/(?P<userId>\d+)', views.logout, name='logout'),  # 退出登录
    url(r'^visitor/', views.visitor, name='visitor'),  # 游客登录
    url(r'^bandMobile/', views.bandMobile, name='bandMobile'),  # 绑定手机
    url(r'^forgetPwd/', views.forgetPwd, name='forgetPwd'),  # 忘记密码

    url(r'^descBloger/', views.descBloger, name='descBloger'),  # 用户的介绍

    url(r'^error/', views.error, name='error'),  # 访问出错
    url(r'^test/', views.test, name='test'),  # 用于测试
    url(r'^personalCenter/(?P<userId>\d+)', views.personalCenter, name='personalCenter'),  # 个人中心
    url(r'^returnCollectList/', views.returnCollectList, name='returnCollectList'),  # 返回个人收藏的数据
    url(r'^returnBlogList/', views.returnBlogList, name='returnBlogList'),  # 返回个人博客的数据
    url(r'^modifyAvatar/', views.modifyAvatar, name='modifyAvatar'),  # 修改头像
    url(r'^sendCode/', views.sendCode, name='sendCode'),  # 发送验证码
    url(r'^modifyDesc/', views.modifyDesc, name='modifyDesc'),  # 修改个人资料
    url(r'^deleteBlog/', views.deleteBlog, name='deleteBlog'),  # 删除博客
    url(r'^applyManage/', views.applyManage, name='applyManage'),  # 申请为管理员
    url(r'^grantUser/', views.grantUser, name='grantUser'),  # 为用户重新授权
    url(r'^deleteUser/', views.deleteUser, name='deleteUser'),  # 删除用户
    url(r'^returnMessageData/', views.returnMessageData, name='returnMessageData'),  # 返回通知的数据
    url(r'^sendMessage/', views.sendMessage, name='sendMessage'),  # 发送私信
    url(r'^markMessage/', views.markMessage, name='markMessage'),  # 标记为已读
    url(r'^deleteMessage/', views.deleteMessage, name='deleteMessage'),  # 删除通知


    url(r'^savemessage/', views.savemessage, name='savemessage'),  # 保存用户的留言

    url(r'', views.index, name='index'),  # 首页 这个可以匹配任何路由 所以要放在最下面

]
